{% extends "base_generic.html" %}
{% block content %}
<h2>{{person.name}}</h2>
<p><strong>Role:</strong> {{person.role.name}}</p>

<h3>Films as actor:</h3>
<ol class="items">
{% for item in films %}
    <li><a href="/films/{{item.film.userurl}}/{{item.film.url}}/">{{item.film.name}}</a></li>
{% endfor %}
</ol>
<h3>Films as director:</h3>
<ol class="items">
{% for film in directedfilms %}
    <li><a href="/films/{{film.userurl}}/{{film.url}}/">{{film.name}}</a></li>
{% endfor %}
</ol>
{% endblock %}
<html>
